home *** CD-ROM | disk | FTP | other *** search
/ The Original Shareware 1.1 / The Original Shareware (WeMake CDs)(Volume 1.1)(CDs, Inc)(1993).iso / 16 / wed211.zip / WEDREF.TXT < prev   
Text File  |  1986-05-28  |  77KB  |  2,018 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.                                 WED Reference Manual
  24.  
  25.                                     Version 2.10
  26.  
  27.  
  28.  
  29.                               Copyright (C) 1985, 1986
  30.  
  31.                                   Mason Washington
  32.                                         and
  33.                            Washington Computer Corporation
  34.  
  35.           
  36.  
  37.  
  38.  
  39.                                     WED Reference Manual
  40.  
  41.                                          Contents
  42.  
  43.  
  44.                   REGISTRATION . . . . . . . . . . . . . . . . . . ii
  45.  
  46.                   NEW FEATURES IN VERSION 2.10 . . . . . . . . . . iv
  47.  
  48.           1       INTRODUCTION . . . . . . . . . . . . . . . . . . 1-1
  49.  
  50.           1.1     Program Description  . . . . . . . . . . . . . . 1-1
  51.           1.2     Machine Requirements . . . . . . . . . . . . . . 1-1
  52.           1.3     Starting WED . . . . . . . . . . . . . . . . . . 1-1
  53.           1.4     The Command Line . . . . . . . . . . . . . . . . 1-2
  54.           1.5     The Status Line  . . . . . . . . . . . . . . . . 1-3
  55.           1.6     The Text Window  . . . . . . . . . . . . . . . . 1-3
  56.           1.7     Exiting WED  . . . . . . . . . . . . . . . . . . 1-4
  57.  
  58.           2       MOVING AROUND THE FILE . . . . . . . . . . . . . 2-1
  59.  
  60.           2.1     Moving Around the Screen . . . . . . . . . . . . 2-1
  61.           2.2     Up Screen and Down Screen  . . . . . . . . . . . 2-2
  62.           2.3     Repeat Factors . . . . . . . . . . . . . . . . . 2-2
  63.           2.4     The Goto Function  . . . . . . . . . . . . . . . 2-2
  64.  
  65.           3       CHANGING THE FILE  . . . . . . . . . . . . . . . 3-1
  66.  
  67.           3.1     Inserting Text . . . . . . . . . . . . . . . . . 3-1
  68.           3.2     Erasing Text . . . . . . . . . . . . . . . . . . 3-2
  69.           3.3     Exchanging Characters  . . . . . . . . . . . . . 3-2
  70.           3.4     Locating and Replacing Text  . . . . . . . . . . 3-3
  71.  
  72.           4       ADVANCED COMMANDS  . . . . . . . . . . . . . . . 4-1ä
  73.  
  74.           4.1     Setting Pointers . . . . . . . . . . . . . . . . 4-1
  75.           4.2     Moving Text  . . . . . . . . . . . . . . . . . . 4-1
  76.           4.3     Copying Text . . . . . . . . . . . . . . . . . . 4-2
  77.           4.4     Zapping Text . . . . . . . . . . . . . . . . . . 4-3
  78.           4.5     Appending Text from Another File . . . . . . . . 4-3
  79.           4.6     Writing Text to Another File . . . . . . . . . . 4-4
  80.           4.7     Formatting Text  . . . . . . . . . . . . . . . . 4-5
  81.           4.8     Viewing Another File . . . . . . . . . . . . . . 4-6
  82.           4.9     Editing Other Files  . . . . . . . . . . . . . . 4-6
  83.           4.10    The Setup Command  . . . . . . . . . . . . . . . 4-7
  84.  
  85.           5       THE WEDINST PROGRAM  . . . . . . . . . . . . . . 5-1
  86.  
  87.           5.1     Starting WEDINST . . . . . . . . . . . . . . . . 5-1
  88.           5.2     Using WEDINST  . . . . . . . . . . . . . . . . . 5-2
  89.           5.3     Exiting WEDINST  . . . . . . . . . . . . . . . . 5-4
  90.  
  91.           Appendix A  Command Summary  . . . . . . . . . . . . . . A-1
  92.  
  93.           Appendix B  Initial Macro Settings . . . . . . . . . . . B-1
  94.  
  95.  
  96.                                         i
  97.           
  98.  
  99.  
  100.  
  101.           REGISTRATION
  102.  
  103.  
  104.                   User feedback is an integral part of any successful
  105.           software system. Please share your impression of WED by dropping
  106.           us a line with your name, address, occupation and any comments
  107.           or suggestions you care to pass along.  You might also mention
  108.           where you got the program, and how you intend to use it. Write
  109.           to:
  110.  
  111.  
  112.                              Mason Washington
  113.                              Washington Computer Corp
  114.                              P.O. Box 16504
  115.                              Alexandria, Virginia 22302
  116.  
  117.  
  118.  
  119.                   WED is distributed as user-supported software.  I
  120.           encourage you to use the program and share it with friends as
  121.           long as:
  122.  
  123.               o   The program is distributed complete and unchanged.
  124.  
  125.               o   No fee or compensation is requested or received except
  126.                   by Washington Computer Corp.
  127.  
  128.               o   WED is not distributed in conjunction with any other
  129.                   product.
  130.  
  131.  
  132.                   If you find this program of value we will appreciate
  133.           your support.  A contribution of $25 is suggested.
  134.  
  135.  
  136.                   User-supported software is a means for the computing
  137.           community to receive quality software while directly supporting
  138.           software authors.  It is based on the ideas that:
  139.  
  140.               o   The value and utility of software is best assessed by
  141.                   the user on his or her own system.  Only after using
  142.                   a program can one really determine whether it serves
  143.                   personal applications, needs and tastes.
  144.  
  145.               o   The creation of independent personal computer software
  146.                   can and should be supported by the computing community.
  147.  
  148.               o   Copying of programs should be encouraged, rather than
  149.                   restricted.  The ease with which software can be
  150.                   distributed outside traditional commercial channels
  151.                   reflects the strength, rather than the weakness, of
  152.                   electronic information.
  153.  
  154.  
  155.  
  156.  
  157.  
  158.                                         ii
  159.           
  160.  
  161.  
  162.  
  163.                   Under the user supported concept, anyone may request
  164.           a copy of a user-supported program by sending a blank, formatted
  165.           diskette to the program author together with an addressed,
  166.           postage-paid return mailer.  A copy of the program, along with
  167.           documentation, will be sent by return mail on the user's disk.
  168.  
  169.                   The program carries a notice suggesting a contribution
  170.           for the program.  Making a contribution is voluntary on your
  171.           part.
  172.  
  173.                   Regardless of whether you make a contribution, you are
  174.           encouraged to copy and distribute the program for the private,
  175.           non-commercial use of others.
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.  
  207.  
  208.  
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216.  
  217.  
  218.  
  219.  
  220.                                         iii
  221.           
  222.  
  223.  
  224.  
  225.           NEW FEATURES IN VERSION 2.10
  226.  
  227.  
  228.                   The following is a list of differences between Version
  229.           1.06 and Version 2.10.
  230.  
  231.  
  232.                   o  WED now supports multiple file editing capability.
  233.                      You can command the editor to load two files at
  234.                      the same time and then switch back and forth
  235.                      between the two with a single keystroke.
  236.  
  237.                   o  The List subcommand has been implemented.  This
  238.                      command provides directory listings from within
  239.                      the editor.
  240.  
  241.                   o  Colors have been added.  You can now select the
  242.                      background, text, and highlight colors that the
  243.                      editor will use.  You can make these choices in
  244.                      either the editor Setup mode or with the WEDINST
  245.                      program.
  246.  
  247.                   o  The choice of end of line symbol has been added
  248.                      to the Setup menu.  You can now select the
  249.                      character with which WED will show the position
  250.                      of each carraige return.
  251.  
  252.                   o  WED will now prompt for the name of the file to
  253.                      edit if no name is supplied on the command line.
  254.                      This makes it easier to run WED from menu systems.
  255.  
  256.                   o  The search algorithm used by the Locate and
  257.                      Replace commands has been improved.  The speed of
  258.                      these searches has been improved by a factor of
  259.                      ten.
  260.  
  261.                   o  WED now allows repeat factors when executing a
  262.                      macro.  This enables you to set up a macro and
  263.                      then have the editor repeat it as many times as
  264.                      you wish.
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273.  
  274.  
  275.  
  276.  
  277.  
  278.  
  279.  
  280.  
  281.  
  282.                                         iv
  283.           
  284.  
  285.  
  286.  
  287.           1       INTRODUCTION.
  288.  
  289.  
  290.           1.1     PROGRAM DESCRIPTION.
  291.  
  292.  
  293.                   WED is a screen oriented text editor designed primarily
  294.           for programmers.  It is fast, easy to use, and provides such
  295.           advanced features as automatic indenting, user defined
  296.           macros and multiple file editing.
  297.  
  298.                   The program is a single executable file with no
  299.           overlays.  This adds flexibility on hard disk systems.  The
  300.           editor can be located in a default directory and then accessed
  301.           via the path command.
  302.  
  303.                   WED works well with the dBASE III system.  It can be
  304.           set up as the default editor and/or word processor using the
  305.           TEDIT and WP keywords in your CONFIG.DB file.
  306.  
  307.                   When WED is invoked, it allocates all available memory
  308.           for use as the main edit buffer.  The entire edit file will
  309.           be loaded into this buffer.  With the file in RAM, the editor
  310.           does not need to access the disk during the edit session.  This
  311.           enables WED to work extremely fast.
  312.  
  313.  
  314.           1.2     MACHINE REQUIREMENTS.
  315.  
  316.  
  317.                   The WED editor will run on IBM PC's and compatibles
  318.           having at least one disk drive (floppy or winchester) and 256K
  319.           RAM. Since WED loads the entire file into memory, you will be
  320.           able to edit larger files on a machine with additional RAM.
  321.           This will not be a serious limitation to most people since WED
  322.           can edit a file as large as 94K on a basic 256K computer.
  323.  
  324.  
  325.           1.3     STARTING WED.
  326.  
  327.  
  328.                   To invode the WED editor, type WED followed by the
  329.           enter key.  WED will respond with the following prompt in the
  330.           upper left hand corner of the screen:
  331.  
  332.           Edit What File?
  333.  
  334.                   Respond by entering the name of the file you wish to
  335.           edit.  For example, to edit the file, "MEMO.TXT", which resides
  336.           on the "C" drive, type the following response:
  337.  
  338.           Edit What File?  C:MEMO.TXT<Enter>
  339.  
  340.                   WED will look for the file in the current subdirectory.
  341.           If it finds the file, it will load it into memory and place
  342.  
  343.  
  344.                                         1-1
  345.           
  346.  
  347.  
  348.  
  349.           the cursor at the top of the file.  If the file does not exist,
  350.           WED will create a new file with the name you specified.
  351.  
  352.                   WED also allows you to specify a path.  For example,
  353.           if the file MEMO.TXT is in the subdirectory, LETTERS, then you
  354.           should respond to the file name prompt as follows:
  355.  
  356.           Edit What File?  C:LETTERS\MEMO.TXT<Enter>
  357.  
  358.                   When this format is used, the editor will search the
  359.           specified subdirectory for the edit file.  If you specify a
  360.           path that does not exist, WED will display an error message
  361.           and stop execution.
  362.  
  363.                   As WED loads a file, it checks the size to make sure
  364.           that it can fit into memory.  If it finds that the file is too
  365.           large, it will display an error message and halt execution.
  366.           If this happens, you will have to break the file up into
  367.           several smaller files and then edit the smaller files one at
  368.           a time.
  369.  
  370.                   WED also allows you to specify the edit file on the
  371.           command line when invoking the editor.  To use this method,
  372.           type "WED" followed by a space and then the name of the file
  373.           you wish to edit.  For example, to edit the file MEMO.TXT,
  374.           type the following command from the DOS prompt:
  375.  
  376.           WED MEMO.TXT
  377.  
  378.                   When using this short form, you may specify a drive
  379.           and a path as described above.
  380.  
  381.  
  382.           1.4     THE COMMAND LINE.
  383.  
  384.  
  385.                   The top line of the edit screen is devoted to the
  386.           command line.  When you first invoke WED, the command line
  387.           looks like this: 
  388.  
  389.           WED: Insert Erase Xchng Pointer Goto Copy Move Zap Locate
  390.  
  391.                   This command line gives you a quick reference to the
  392.           WED commands.  To invoke any of the commands, just type the
  393.           first letter of the command listed on the command line.
  394.  
  395.                   Because WED has more commands than can fit on one
  396.           line, the Next command has been provided.  This command enables
  397.           you to see the rest of the commands.  Type "N", and WED will
  398.           show you additional commands.
  399.  
  400.  
  401.  
  402.  
  403.  
  404.  
  405.  
  406.                                         1-2
  407.           
  408.  
  409.  
  410.  
  411.           1.5     THE STATUS LINE.
  412.  
  413.  
  414.                   The status line is the second line on the main edit
  415.           screen. It provides you with useful information about the
  416.           current edit session.  Below is an example of a typical status
  417.           line:
  418.  
  419.           Document: A:DEMOFILE.TXT Size: 12K Free: 192K Char: 45 Line: 112
  420.  
  421.                   The first part of the line tells you the name of the
  422.           file you are editing.  In this example, it is "A:DEMOFILE.TXT".
  423.           The next two entries tell you the size of the current edit
  424.           file and the amount of free memory available.  Both of these
  425.           values are in kilobytes (about 1000 characters).
  426.  
  427.                   The last two entries give you information about the
  428.           current cursor position.  The char field shows the relative
  429.           character position in the current line.  In the above example,
  430.           the cursor is on the 45th character of the current line.  In
  431.           most cases, this value will be the same as the column at which
  432.           the cursor resides.  The char value will not match the screen
  433.           column if there are tab or control characters ahead of the
  434.           cursor.
  435.  
  436.                   The line field displays the current line number.  This
  437.           is the line in the file on which the cursor is currently
  438.           positioned.  The lines are numbered starting with the first
  439.           line in the file.  Note that this line count only changes when
  440.           the cursor passes a return character.  Thus, a file line longer
  441.           than eighty characters will wrap to the next screen line, but
  442.           will be considered to be one line by the editor. 
  443.  
  444.  
  445.           1.6     THE TEXT WINDOW.
  446.  
  447.  
  448.                   The lines below the status line are used to display
  449.           the actual text of the edit file.  This area is called the
  450.           text window because it acts like a window into the file.  This
  451.           window can be moved to any point in the file using the various
  452.           cursor movement commands described in section 2.
  453.  
  454.                   The text window has room for twenty-two lines.  Each
  455.           line is terminated with a special end of line character that
  456.           looks like two left facing arrows.  This character indicates
  457.           that there is a carriage return at the end of the line.
  458.           Sometimes, a file line will be longer than the eighty column
  459.           width of the screen.  In this case, WED will wrap that line
  460.           around to the next screen line.
  461.  
  462.                   The WED editor has the ability to edit special
  463.           characters called control characters.  These are the characters
  464.           obtained by holding down the <Ctrl> key while typing a letter
  465.           of the alphabet.  Control characters are displayed by a carat,
  466.  
  467.  
  468.                                         1-3
  469.           
  470.  
  471.  
  472.  
  473.           "^", followed by the alphabetical character.  For example,
  474.           ctrl-G will be displayed as follows: "^G".  There is one
  475.           exception this rule.  WED will ignore any Ctrl-J (linefeed)
  476.           characters in the file.
  477.  
  478.  
  479.           1.7     EXITING WED.
  480.  
  481.  
  482.                   When you are finished editing a document, type Q to
  483.           invoke the quit command.  WED will prompt you as follows: 
  484.  
  485.           QUIT: Keep Abandon <Esc>
  486.  
  487.                   Type K to keep the the changes you have made to the
  488.           file.  If you are editing an existing document, the disk file
  489.           will be updated to reflect the changes made during this editing
  490.           session.  The original file will be saved in a backup file with
  491.           the ".BAK" extension.  For example, when you Quit Keep the
  492.           file "A:TEST.TXT", the original file will be renamed to
  493.           "A:TEST.BAK", and the new updated file will be saved as
  494.           "A:TEST.TXT".
  495.  
  496.                   If you type K to keep a new document, WED will create
  497.           a new file and not create a backup file.
  498.  
  499.                   Sometimes, when WED is saving a new or revised file,
  500.           it is possible to encounter a full disk or other disk problem.
  501.           If this occurs, WED will display an error message describing
  502.           the problem and then prompt you as follows:
  503.  
  504.           QUIT: Keep Abandon <Esc> K   Enter file to write to
  505.  
  506.                   You can now enter a new file name to which WED will
  507.           write the file.  If the problem is a full disk, you can specify
  508.           a different disk drive and WED will write the file to that
  509.           disk.
  510.  
  511.                   If you don't want to save the changes you made during
  512.           the edit session, type A to abandon this edit session.  WED
  513.           will return you to the DOS prompt without updating the edit
  514.           file.
  515.  
  516.                   If you do not want to quit the editor, you can press
  517.           the <Esc> key and WED will return to the edit mode.
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525.  
  526.  
  527.  
  528.  
  529.  
  530.                                         1-4
  531.           
  532.  
  533.  
  534.  
  535.           2       MOVING AROUND THE FILE.
  536.  
  537.  
  538.           2.1     MOVING AROUND THE SCREEN.
  539.  
  540.  
  541.           2.1.1   The Arrow Keys.
  542.  
  543.                   The WED editor provides many commands for moving the
  544.           cursor around the screen.  The most often used are the arrow
  545.           keys on the numeric keypad at the right of the keyboard.  The
  546.           left and right arrow keys move the cursor one character to the
  547.           left and right respectively.  Notice that when you try to move
  548.           past the end of the line, the cursor is moved to the first
  549.           character of the next line conversely, if you try to move left
  550.           past the first column of the line, the cursor will move up to
  551.           the last character on the line above.
  552.  
  553.                   An easier way to move the cursor up or down one line
  554.           is provided with the up and down arrow keys.  The up arrow key
  555.           moves the cursor up one line.  If possible, WED will move the
  556.           cursor to the same column in the above line. If the line above
  557.           does not extend out to the current column, then the cursor will
  558.           be placed on the last character of that line.  The down arrow
  559.           key performs just like the up key, but in the opposite
  560.           direction.
  561.  
  562.                   There is another key that performs a similar function
  563.           to the down cursor key.  Pressing the return key moves the
  564.           cursor to the first character of the next line.
  565.  
  566.           2.1.2   The Home and End Keys.
  567.  
  568.                   There are more keys that provide for convenient movement
  569.           of the cursor.  Pressing the Home key moves the cursor to the
  570.           first character on the current line, and pressing the End key
  571.           moves the cursor to the last character of the line.
  572.  
  573.           2.1.3   The Right Word and Left Word Commands.
  574.  
  575.                   The Right Word and Left Word commands are similar to
  576.           the right and left arrow keys, only faster.  To invoke these
  577.           commands, hold down the control key while pressing either the
  578.           right or left cursor key.  Right Word moves the cursor to the
  579.           first character of the next word to the right, and Left Word
  580.           moves the cursor to the first character of the next word to
  581.           the left.
  582.  
  583.           2.1.4   The Space Bar.
  584.  
  585.                   The Space command is similar to the Right Word command.
  586.           Press the space bar, and WED will move the cursor to the next
  587.           space or carriage return character.
  588.  
  589.  
  590.  
  591.  
  592.                                         2-1
  593.           
  594.  
  595.  
  596.  
  597.           2.2     UP SCREEN AND DOWN SCREEN.
  598.  
  599.  
  600.                   The up and down arrow keys are fine for moving around
  601.           the screen, but sometimes you need to move the cursor more than
  602.           just a couple of lines.  The up screen and down screen functions
  603.           are useful for these situations.  These commands move the cursor
  604.           an entire screen at a time. This is about twenty-two lines.
  605.  
  606.                   The Down Screen function can be activated by pressing
  607.           either the <PgDn> or the "D" key, and the Up Screen function
  608.           by using either the <PgUp> or the "U" key.  Both of these
  609.           functions can be used with a repeat factor to move large
  610.           distances through the file.  Repeat factors are explained
  611.           below.
  612.  
  613.  
  614.           2.3     REPEAT FACTORS.
  615.  
  616.  
  617.                   Sometimes, when moving around the file, it is necessary
  618.           to repeat a command several times.  For example, if you want
  619.           to move the cursor down five screens of text, you have to press
  620.           the <PgDn> key five times.  WED provides an easier way of
  621.           repeating a command.
  622.  
  623.                   Many commands can be preceded by a repeat factor.
  624.           Entering a repeat factor before a command tells WED to execute
  625.           that command n times.  To enter a repeat factor, type the number
  626.           (between 1 and 9999) and then press the appropriate command key.
  627.           For example to move the cursor down 5 screens, type the
  628.           following:  5<PgDn>
  629.  
  630.  
  631.           2.4     THE GOTO FUNCTION.
  632.  
  633.  
  634.                   The Goto command provides a means for quickly moving
  635.           the cursor to a particular place in the file.  With the Top
  636.           and Bottom subcommands, you can move directly to the top or
  637.           the bottom of the file.  The Line subcommand enables you to
  638.           move directly to any line by specifiying a particular line
  639.           number.  Also, the Goto command allows you to move directly
  640.           to any pointer you have set during the edit session.  For more
  641.           information on pointers, refer the section on setting pointers.
  642.  
  643.                 To invoke Goto, type G.  The prompt will change to the
  644.           following:
  645.  
  646.           GO TO:  Top, Bottom, Line
  647.  
  648.                   If any pointers are set, they will be shown to the
  649.           right of "Line".  For example, if pointers 1 and 2 are set
  650.           the prompt will look like this:
  651.  
  652.  
  653.  
  654.                                         2-2
  655.           
  656.  
  657.  
  658.  
  659.           GO TO:  Top, Bottom, Line, 1 2
  660.  
  661.                   Now just type T for Top, B for Bottom, L for a
  662.           particular line number, or the number of one of the pointers
  663.           that is set.  The cursor will be moved directly to that
  664.           location.
  665.  
  666.                   If type L to go directly to a particular line. WED
  667.           will prompt you for a line number:
  668.  
  669.           GO TO: LINE: Enter line number, then <ret>
  670.  
  671.                   Enter the line number you wish to move the cursor to,
  672.           and then complete the command by pressing the return key.
  673.  
  674.  
  675.  
  676.  
  677.  
  678.  
  679.  
  680.  
  681.  
  682.  
  683.  
  684.  
  685.  
  686.  
  687.  
  688.  
  689.  
  690.  
  691.  
  692.  
  693.  
  694.  
  695.  
  696.  
  697.  
  698.  
  699.  
  700.  
  701.  
  702.  
  703.  
  704.  
  705.  
  706.  
  707.  
  708.  
  709.  
  710.  
  711.  
  712.  
  713.  
  714.  
  715.  
  716.                                         2-3
  717.           
  718.  
  719.  
  720.  
  721.           3       CHANGING THE FILE.
  722.  
  723.  
  724.           3.1     INSERTING TEXT.
  725.  
  726.  
  727.                   There are two commands for inserting text into a
  728.           document.  The first command, Insert Character, is useful for
  729.           inserting just a few characters into a document.  It allows
  730.           you to insert any displayable character, a carriage return,
  731.           or a space character. To use this command, place the cursor
  732.           at the position you want to insert a new character, press the
  733.           plus <+> key, and WED will insert a space at the cursor
  734.           location.  Now you can type any single character over the new
  735.           space or you can press the plus key to insert another space
  736.           character.  Note that you cannot insert a plus or minus
  737.           character with this command because these keys are reserved
  738.           for inserting and deleting characters.  If you need to insert
  739.           one of these characters, use the standard insert command
  740.           described below.
  741.  
  742.                   The second command, Insert, can be invoked by either
  743.           typing I, or by pressing the <Ins> key.  This command allows
  744.           you to enter continuous text without pressing the <+> key before
  745.           each character.  To use this command, move the cursor to the
  746.           character in front of which you want to insert text, and type
  747.           I or press then <Ins> key to enter the Insert mode.  WED will
  748.           then open two blank lines in which you can begin entering new
  749.           text.  Also, the command line will change to the following:
  750.  
  751.           INSERT: Enter text, then <Ins>
  752.  
  753.                   You can now enter the text you wish to insert.  While
  754.           you are in Insert mode, there are two keys available for
  755.           correcting mistakes: the backspace key (the key directly above
  756.           the <Enter> key) will erase the last character entered, and
  757.           the <Home> key will erase all of the characters entered on the
  758.           current line.
  759.  
  760.                   As you add lines, the text below the insert will
  761.           automatically drop down to make more room.  If auto indent
  762.           mode is turned on, WED will insert spaces for indentation at
  763.           the beginning of each new line.  Refer to section 4.10 for more
  764.           information on auto indenting.  When you have typed all that
  765.           you want to insert, press the <Ins> to exit insert mode.  The
  766.           gap after the inserted text will be closed, and the command
  767.           line will return to its normal state.
  768.  
  769.                   You can abort an insert session by pressing the <Esc>
  770.           key while in insert mode.  WED will prompt you with the question
  771.           "ABORT(Y/N)?" in the upper right hand corner of the screen.
  772.           Enter "N" to continue inserting, or "Y", to abort the session.
  773.           The file will remain as it was before the insert mode was
  774.           entered.
  775.  
  776.  
  777.  
  778.                                         3-1
  779.           
  780.  
  781.  
  782.  
  783.           3.2     ERASING TEXT.
  784.  
  785.  
  786.                   WED provides three commands for erasing text from a
  787.           document.  The first two commands, Delete Character and Erase,
  788.           are described in this section.  The third command, Zap, is
  789.           described in section 4.4.
  790.  
  791.                   The Delete Character command is best for erasing just
  792.           a few characters.  There are two variations of this command:
  793.           Delete Left and Delete cursor.  To delete left, press the
  794.           backspace key  and WED will delete the character immediately
  795.           to the left of the cursor.  To delete cursor, press the minus
  796.           key (located at the far right on the keyboard) and the character
  797.           under the cursor will be deleted.
  798.  
  799.                   For removing more than a few characters at a time, the
  800.           Erase command is more practical.  This command can be invoked
  801.           by pressing either the "E" or the <Del> key.  To use the command,
  802.           move the cursor to the first character of the section of text
  803.           that you want to remove.  Then press either the E or <Del> key
  804.           and the following prompt will be displayed:
  805.  
  806.           ERASE:  Move Cursor, then <Del>
  807.  
  808.                   Now move the cursor to the last character of the text
  809.           to be removed. Note that you cannot move the cursor below the
  810.           last line on the current screen.  As you move the cursor, the
  811.           text between the starting point and the cursor will be shown
  812.           in low intensity to designate that text as marked for erasure.
  813.           Notice that you can move the cursor to the left and/or up to
  814.           un-mark text. When the cursor is on the last character of the
  815.           text to be erased, press the <Del> key and the text will be
  816.           removed.  If, while you are using the erase command, you decide
  817.           that you really don't want to erase this text, you can press
  818.           the <Esc> key and WED will abort the Erase command.
  819.  
  820.  
  821.           3.3     EXCHANGING CHARACTERS.
  822.  
  823.  
  824.                   Sometimes while you are editing a document you will
  825.           need to make small changes in the text for which the sequence
  826.           of erasing the old text and inserting new text is burdensome.
  827.           The Exchange command is provided for this purpose.  This command
  828.           allows you to overwrite existing text.  To invoke the command,
  829.           type X and the following prompt will be displayed:
  830.  
  831.           XCHNG: Enter text, then <Esc>
  832.  
  833.                   Now, any characters you type will write over the old
  834.           text. If you want to skip over text, you can move the cursor
  835.           around the screen with the arrow keys or the <Home> or <End>
  836.           keys.  You can also erase characters to the left of the cursor
  837.  
  838.  
  839.  
  840.                                         3-2
  841.           
  842.  
  843.  
  844.  
  845.           using the backspace key.  When you are done, press the <Esc>
  846.           key and WED will return from Exchange mode.
  847.  
  848.  
  849.           3.4     LOCATING AND REPLACING TEXT.
  850.  
  851.  
  852.                   You can locate, locate and replace, or locate and
  853.           delete any word or phrase (string of characters) in your file
  854.           by using the Locate and Replace commands.  Your string can be
  855.           as long as 30 characters.
  856.  
  857.                   To invoke the Locate command, type L and the following
  858.           prompt will be displayed:
  859.  
  860.           LOCATE: Enter text, then <RET>
  861.  
  862.                   Now type the word or phrase you wish to locate.
  863.           Complete the entry by pressing the return key.  WED will then
  864.           prompt you for options:
  865.  
  866.           Options (count, Back, Whole, ignore Case, No query, Global):
  867.  
  868.                   These options are explained in section 3.4.1.  To search
  869.           without options, just press the return key. WED will now search
  870.           from the current cursor location down towards the end of the
  871.           file.  If it finds the phrase you entered, the cursor will be
  872.           moved to that location in the file.  If it cannot find the
  873.           phrase, the cursor will be left where it was when you invoked
  874.           the Locate command.
  875.  
  876.                   If you now wish to locate the next occurrence of your
  877.           phrase, type ctrl-L (hold down the <Ctrl> key while pressing
  878.           the L key) and WED will locate the next occurrence of that
  879.           phrase using the same locate options.
  880.  
  881.                   The Replace command is similar to the Locate command.
  882.           To invoke it, type R and the following prompt will be displayed:
  883.  
  884.           REPLACE: Enter old text, then <ret>
  885.  
  886.                   Now type the word or phrase you wish to replace.
  887.           Complete the entry by pressing the return key.  WED will then
  888.           prompt you for the replacement word or phrase:
  889.  
  890.           Enter new text, then <ret>
  891.  
  892.                   Now enter the replacement string and complete the entry
  893.           with the return key.  The options prompt will then be displayed:
  894.  
  895.           Options (count, Back, Whole, ignore Case, No query, Global):
  896.  
  897.                   To replace without options, just press the return key.
  898.           WED will now search from the current cursor location down
  899.  
  900.  
  901.  
  902.                                         3-3
  903.           
  904.  
  905.  
  906.  
  907.           towards the end of the file.  If it finds the phrase you
  908.           entered, the cursor will be moved to that location in the
  909.           file, and the prompt "REPLACE?" will appear in the upper right
  910.           corner of the screen. Type "Y" and the string will be replaced.
  911.           If it cannot find the phrase, the cursor will be left in its
  912.           original position. 
  913.  
  914.                   If you want to perform the same replacement on the next
  915.           occurrence of the string, type ctrl-R and WED will repeat the
  916.           Replace command, using the same search and replacement strings
  917.           and the same options.
  918.  
  919.  
  920.           3.4.1   Locate and Replace Options.
  921.  
  922.  
  923.                   Six options help you to define the scope of your locate
  924.           or replace operation, each in a specific way.  When you just
  925.           press the return key at the options prompt, WED looks for an
  926.           exact string of characters and conducts the search forward from
  927.           the current cursor position. The options give you considerably
  928.           more flexibility.  You can choose none, one or several of the
  929.           options.
  930.  
  931.           Count Option.
  932.  
  933.                   With the Locate command, you can use the Count option
  934.           to locate the nth occurrence of your string.  To use the Count
  935.           option, simply enter the number of occurrences desired.  For
  936.           example, if the string is "Smith" and you enter 15 as an option,
  937.           the cursor will be moved to the fifteenth occurrence of "Smith"
  938.           (or the last occurrence of "Smith" if WED finds less than
  939.           fifteen).
  940.  
  941.                   When using the Replace command, the Count option causes
  942.           WED to replace the next n occurrences of your string.  For
  943.           example, if the string is "Smith" and you enter 3 as an option,
  944.           the next three occurrences of "Smith" will be replaced.
  945.  
  946.           Backwards Option.
  947.  
  948.                   The Backward option, B, causes WED to search backward
  949.           from the current cursor location to the beginning of the file.
  950.           It can be used with either the Locate or the Replace command.
  951.  
  952.           Whole Words Option.
  953.  
  954.                   Type W to invoke the Whole words option.  This instructs
  955.           WED to search for whole words only.  It will not find strings
  956.           that are embedded in other words.  For example, if your search
  957.           string is "the" and the cursor is at the beginning of the
  958.           following line:
  959.  
  960.           "and then the . . ."
  961.  
  962.  
  963.  
  964.                                         3-4
  965.           
  966.  
  967.  
  968.  
  969.           Locate will not stop at "then" even though it begins with the
  970.           string "the".  Instead, Locate will stop at the word "the".
  971.  
  972.           Ignore Case Option.
  973.  
  974.                   Use C to invoke the Ignore Case option.  This option
  975.           instructs WED to ignore the difference between upper and lower
  976.           case letters.  It will find all occurrences of the string,
  977.           regardless of which letters are capitalized.
  978.  
  979.           No Query Option.
  980.  
  981.                   The No Query option, N, only pertains to the Replace
  982.           command.  Normally, the Replace command asks for your approval
  983.           before each replace operation.  With the No Query option, you
  984.           instruct WED to replace without querying for approval.  This
  985.           feature is useful when performing multiple replaces.  When
  986.           replacing with the No Query option, WED will show you each
  987.           replacement as it occurs, unless you also choose the Global
  988.           option, in which case WED performs all replacements before
  989.           showing the altered file.
  990.  
  991.           Global Option.
  992.  
  993.                   With the Global option, G, you can instruct WED to
  994.           replace all occurrences of your string in the entire file.  WED
  995.           will start processing at the beginning of the file and work
  996.           towards the end. If you use this option in conjunction with
  997.           the Backward option, WED will start at the end of the file and
  998.           work towards the beginning.  When you use this option with the
  999.           No Query option, WED will perform all replaces before showing
  1000.           you the altered file.
  1001.  
  1002.  
  1003.  
  1004.  
  1005.  
  1006.  
  1007.  
  1008.  
  1009.  
  1010.  
  1011.  
  1012.  
  1013.  
  1014.  
  1015.  
  1016.  
  1017.  
  1018.  
  1019.  
  1020.  
  1021.  
  1022.  
  1023.  
  1024.  
  1025.  
  1026.                                         3-5
  1027.           
  1028.  
  1029.  
  1030.  
  1031.           4       ADVANCED COMMANDS.
  1032.  
  1033.  
  1034.           4.1     SETTING POINTERS.
  1035.  
  1036.  
  1037.                   WED allows you to set up to eight pointers in the text
  1038.           while you are editing.  These pointers can be used for quick
  1039.           cursor movement with the Goto command, or they can be used to
  1040.           mark text for block commands such as move and copy which are
  1041.           described below.
  1042.  
  1043.                   To set a pointer, you must first move the cursor to
  1044.           the location you want to place the pointer.  Then type P to
  1045.           invoke the Set Pointer command.  The prompt line will now look
  1046.           like this:
  1047.  
  1048.           SET POINTER:  1 2 3 4 5 6 7 8
  1049.  
  1050.                   The numbers corresponding to pointers that are already
  1051.           set will be displayed in low intensity.  If any of the pointers
  1052.           are set to a position within the text window, their position in
  1053.           the text will be indicated with the pointer number enclosed in
  1054.           square brackets.  For example, pointer one points to the first
  1055.           character of the second line in the following text:
  1056.  
  1057.           This is the first line.<
  1058.           This is the second line.<
  1059.           This is the third line.<
  1060.  
  1061.                   When the pointer command is invoked, the three lines
  1062.           will look like this:
  1063.  
  1064.           This is the first line.<
  1065.           [1]This is the second line.<
  1066.           This is the third line.<
  1067.  
  1068.                   Select a pointer by typing a number between one and
  1069.           eight, and that pointer will be set to the current cursor
  1070.           location.  If you pick a pointer that is already set, it will
  1071.           forget the old location and be set to the current location.
  1072.           WED will indicate the new setting by displaying the pointer
  1073.           number in square brackets at the new pointer position in the
  1074.           text.
  1075.  
  1076.  
  1077.           4.2     MOVING TEXT.
  1078.  
  1079.  
  1080.                   The Move command moves a marked section of text from
  1081.           one part of a file to another.  This is a useful command if
  1082.           you want to move an entire paragraph or section of a file to
  1083.           another location within the file.
  1084.  
  1085.  
  1086.  
  1087.  
  1088.                                         4-1
  1089.           
  1090.  
  1091.  
  1092.  
  1093.                   Before you can execute the move command, you must place
  1094.           pointers at the beginning and the end of the block of text that
  1095.           you want to move.  After you have marked the block to be moved,
  1096.           move the cursor to the desired target location. Now invoke the
  1097.           Move command by typing M.  The following prompt will displayed:
  1098.  
  1099.           MOVE: Top, Bottom 1 2  from
  1100.  
  1101.                   In this example, the number 1 and 2 pointers have been
  1102.           set, as indicated by the "1" and the "2" in the prompt line.
  1103.           Now enter the number of the pointer that marks the beginning
  1104.           of the block to be moved.  Note that you can also use the Top
  1105.           or Bottom of the file as an end point.  After you have entered
  1106.           the first pointer number (in this example, 1), the prompt will
  1107.           change to the following:
  1108.  
  1109.           MOVE: Top, Bottom 1 2  from 1, to
  1110.  
  1111.                   Now enter the number of the pointer that marks the end
  1112.           of the block to be moved, and WED will move the block of text
  1113.           to the current cursor location.
  1114.  
  1115.  
  1116.           4.3     COPYING TEXT.
  1117.  
  1118.  
  1119.                   The copy command makes a duplicate copy of a marked
  1120.           section of text in the file and places that copy at the current
  1121.           cursor location.  This is a useful command if you want to repeat
  1122.           a section of your text once or more in a file.
  1123.  
  1124.                   Before you can execute the Copy command, you must place
  1125.           pointers at the beginning and the end of the block of text that
  1126.           you want to copy.  After you have marked the block to be copied,
  1127.           move the cursor to the desired target location. Now invoke the
  1128.           Copy command by typing C.  The following prompt will be
  1129.           displayed:
  1130.  
  1131.           COPY: Top, Bottom 1 4  from
  1132.  
  1133.                   In this example, the number 1 and 4 pointers have been
  1134.           set as indicated by the "1" and the "4" in the prompt line.
  1135.           Now enter the number of the pointer that marks the beginning
  1136.           of the block to be copied.  Note that you can also use the Top
  1137.           or Bottom of the file as an end point.  After you have entered
  1138.           the first pointer number (in this example, 1), the prompt will
  1139.           change to the following:
  1140.  
  1141.           COPY: Top, Bottom 1 4  from 1, to
  1142.  
  1143.                   Now enter the number of the pointer that marks the end
  1144.           of the block to be copied, and WED will copy the block of text
  1145.           to the current cursor location.
  1146.  
  1147.  
  1148.  
  1149.  
  1150.                                         4-2
  1151.           
  1152.  
  1153.  
  1154.  
  1155.           4.4     ZAPPING TEXT.
  1156.  
  1157.  
  1158.                   The Zap command provides a quick way to delete large
  1159.           sections of text from your file.
  1160.  
  1161.                   Before you can execute the Zap command, you must place
  1162.           pointers at the beginning and the end of the block of text that
  1163.           you want to delete.  After you have marked the block to be
  1164.           deleted, type Z to invoke the Zap command.  WED will prompt
  1165.           you as follows:
  1166.  
  1167.           ZAP: Top, Bottom 1 2  from
  1168.  
  1169.                   In this example, the number 1 and 2 pointers have been
  1170.           set as indicated by the "1" and the "2" in the prompt line.
  1171.           Now enter the number of the pointer that marks the beginning
  1172.           of the block to be deleted.  Note that you can also use the
  1173.           Top or Bottom of the file as an end point.  After you have
  1174.           entered the first pointer number (in this example, 1), the
  1175.           prompt will change to the following:
  1176.  
  1177.           ZAP: Top, Bottom 1 2  from 1, to
  1178.  
  1179.                   Now enter the number of the pointer that marks the end
  1180.           of the block to be deleted, and WED will delete the block of
  1181.           text from the file.
  1182.  
  1183.  
  1184.           4.5     APPENDING TEXT FROM ANOTHER FILE.
  1185.  
  1186.  
  1187.                   The Append command enables you to insert text from
  1188.           another file into the file you are currently editing.  To invoke
  1189.           the Append command, first move the cursor to the position at
  1190.           which you want the other file inserted, and then type A.  The
  1191.           following prompt will be displayed:
  1192.  
  1193.           APPEND: List, Insert
  1194.  
  1195.                   Now type I to insert another file.  WED will respond
  1196.           with the prompt:
  1197.  
  1198.           INSERT: Enter Document Name
  1199.  
  1200.                   Enter the name of the file you wish to insert.  Include
  1201.           the disk drive and path if desired.  If you don't, WED will
  1202.           default to the same disk and path of the main edit file.  WED
  1203.           will now insert that entire file into the file you are editing
  1204.           at the current cursor location.
  1205.  
  1206.                   The List command is provided as an option on the
  1207.           append menu to aid in finding the file you wish to insert.
  1208.           This command is similar to the DOS Dir command.  To execute
  1209.  
  1210.  
  1211.  
  1212.                                         4-3
  1213.           
  1214.  
  1215.  
  1216.  
  1217.           this command, type L while in the Append menu.  WED will
  1218.           respond with the following prompt:
  1219.  
  1220.           LIST: Directory of what?
  1221.  
  1222.                   Now enter the search pattern for which you would
  1223.           like to see a directory listing.  You can use wild cards
  1224.           just as you can with the DOS Dir command.  You can also
  1225.           specify a drive and/or a path.  If you don't, the directory
  1226.           listing will default to the drive and/or path of the
  1227.           current edit file.
  1228.  
  1229.                   The editor will then display the files matching
  1230.           the specified search pattern.  If there is more than one
  1231.           screen full of names, WED will pause between each page
  1232.           and display this prompt:
  1233.  
  1234.           LIST: *.*             <any key> to see more; <Esc> to edit
  1235.  
  1236.                   In this example, the search pattern was "*.*".
  1237.           At this point, you can press any key but the escape key,
  1238.           and WED will show you the next screen full of file names.
  1239.           If you press the escape key, the editor will abort the
  1240.           listing and return to the main edit menu.
  1241.  
  1242.                   When WED reaches the end of the directory listing,
  1243.           it will prompt like this:
  1244.  
  1245.           LIST: *.*                      <any key> to edit
  1246.  
  1247.                   Just press any key on the keyboard, and WED will
  1248.           return to the main edit menu.
  1249.  
  1250.  
  1251.           4.6     WRITING TEXT TO ANOTHER FILE.
  1252.  
  1253.  
  1254.                   The Write command writes a marked block of text in
  1255.           the current text out to a new file on disk.  It is a useful
  1256.           command for creating stock paragraphs or for saving sections
  1257.           of a file that will later be inserted into other files.
  1258.  
  1259.                   Before you can execute the Write command, you must
  1260.           place pointers at the beginning and the end of the block of
  1261.           text that you want to write.  After you have marked the block
  1262.           to be written, type W to invoke the write command.  WED will
  1263.           prompt you as follows:
  1264.  
  1265.           WRITE: Top, Bottom 1 2  from
  1266.  
  1267.                   In this example, the number 1 and 2 pointers have been
  1268.           set as indicated by the "1" and the "2" in the prompt line.
  1269.           Now enter the number of the pointer that marks the beginning
  1270.           of the block to be written.  Note that you can also use the
  1271.           Top or Bottom of the file as an end point.  After you have
  1272.  
  1273.  
  1274.                                         4-4
  1275.           
  1276.  
  1277.  
  1278.  
  1279.           entered the first pointer number (in this example, 1), the
  1280.           prompt will change to the following:
  1281.  
  1282.           WRITE: Top, Bottom 1 2  from 1, to
  1283.  
  1284.                   Now enter the number of the pointer that marks the end
  1285.           of the block to be written.  WED will now ask you for the file
  1286.           to write to:
  1287.  
  1288.           WRITE: Top, Bottom 1 2  from 1  to  2  to Document
  1289.  
  1290.                   Enter the name of the file to which you wish to write
  1291.           the block of text and press the return key.  You can include
  1292.           a disk drive and path when entering the name.  If you don't,
  1293.           WED will default to the same disk and path as the main edit
  1294.           file.  WED will now write the marked text out to the specified
  1295.           file.  Note that if you specify the name of an existing file,
  1296.           that file will be replaced by the new file.
  1297.  
  1298.  
  1299.           4.7     FORMATTING TEXT.
  1300.  
  1301.  
  1302.                   The Format command allows you to move blocks of text
  1303.           to the left or right.  It is useful for programmers working
  1304.           in structured languages such as PASCAL.  With this command,
  1305.           you can change the indentation of entire blocks of code with
  1306.           one command.
  1307.  
  1308.                   Before you can execute the format command, you must
  1309.           place pointers at the beginning and the end of the block of
  1310.           text that you want to re-format.  After you have marked the
  1311.           block, type F to invoke the Format command.  WED will prompt
  1312.           you as follows:
  1313.  
  1314.           FORMAT: Indent, Undent
  1315.  
  1316.                   If you want to move the text block to the right, type
  1317.           I to indent.  Otherwise, type U to unindent the block (move
  1318.           it to the left).  WED will prompt you for the number of spaces
  1319.           to move the text:
  1320.  
  1321.           INDENT: how many spaces?
  1322.  
  1323.                   Now enter the number of spaces to move the text, and
  1324.           WED will then ask for the end points of the block of text:
  1325.  
  1326.           INDENT (2): Top, Bottom 1 2  from
  1327.  
  1328.                   Notice that WED displays the number of spaces to indent
  1329.           (or unindent) in parentheses.  In this example, the number of
  1330.           spaces is set to 2.  Enter the number of the pointer that marks
  1331.           the beginning of the block.  WED then prompts you for the end
  1332.           of the block:
  1333.  
  1334.  
  1335.  
  1336.                                         4-5
  1337.           
  1338.  
  1339.  
  1340.  
  1341.           INDENT (2): top, Bottom 1 2  from  1  to
  1342.  
  1343.                   Enter the number of the pointer that marks the end of
  1344.           the block.  WED will then go to work re-indenting the block
  1345.           of text.
  1346.  
  1347.  
  1348.           4.8     VIEWING ANOTHER FILE.
  1349.  
  1350.  
  1351.                   The View command allows you to view one file while
  1352.           editing another file.  This command is useful if you need to
  1353.           make a reference in the current file to something specific
  1354.           in another file.
  1355.  
  1356.                   To execute the View command, type V and WED will prompt
  1357.           you for the name of the file to be viewed:
  1358.  
  1359.           VIEW: Enter document name, then <Ret>
  1360.  
  1361.                   Enter the name of the file you want to look at and WED
  1362.           will display the first half-screen of the file on the lower
  1363.           half of the screen.  Notice that the viewed file is displayed
  1364.           in low intensity.  You can now press any key to look at
  1365.           succeeding sections of the file, or you can press <Esc> to
  1366.           return to editing your main file.
  1367.  
  1368.  
  1369.           4.9     EDITING OTHER FILES.
  1370.  
  1371.  
  1372.                   Often, while editing, you will run across situations
  1373.           where you want to use a paragraph or section of code from
  1374.           another file.  To get this paragraph, you must exit the editor,
  1375.           edit the other file, mark and write the desired paragraph to
  1376.           a temporary file, exit the editor, reedit the current file,
  1377.           and append the temporary file.  Whew!  The Other files
  1378.           command makes this process much easier.  This command allows
  1379.           you to load a second file into the edit buffer without quiting
  1380.           from the first file.  Once the other file is loaded, you can
  1381.           switch back and forth between the two with a single keystroke.
  1382.  
  1383.                   To execute the Other file command, type O from the
  1384.           main edit menu.  WED will check to make sure there is enough
  1385.           memory available to create a new edit buffer.  If there is,
  1386.           it will respond with the following prompt:
  1387.  
  1388.           EDIT OTHER: Enter document name
  1389.  
  1390.                   Respond by entering the name of the other file you
  1391.           wish to edit.  You can specify a drive and/or path if you
  1392.           wish.  If you don't, WED will default to the drive and/or
  1393.           path of the current edit file.  If you enter the name of a
  1394.           file which does not exist, WED will create a new file.
  1395.  
  1396.  
  1397.  
  1398.                                         4-6
  1399.           
  1400.  
  1401.  
  1402.  
  1403.                   Once the other file is loaded, you can edit it with
  1404.           all the features available for the primary file.  To switch
  1405.           back to the primary file, just type O, and WED will display
  1406.           and begin editing that file.  You can switch back and forth
  1407.           between the two files using the Other file command as often
  1408.           as you like.
  1409.  
  1410.                   When you are done with one of the files, use the
  1411.           Quit command to Save or Abandon that file.  Note that you
  1412.           can Quit either file and then, which ever file is left will
  1413.           become the primary edit file.  To Quit one of the files,
  1414.           first switch to that file using the Other file command.
  1415.           Then type Q from the main menu.  WED will display the
  1416.           standard quit menu.  Respond with A to Abandon, or S to
  1417.           Save the file.  The editor will then Save or Abandon that
  1418.           file, and then return to the other file.  It will also
  1419.           free up any buffer space used by the quit file so that the
  1420.           Other file command can be used again.
  1421.  
  1422.  
  1423.           4.10    THE SETUP COMMAND.
  1424.  
  1425.  
  1426.                   The setup command allows you to change the auto-indent
  1427.           mode or tab mode, or to define up to ten macros.  The changes
  1428.           made with this command are temporary and only last until you
  1429.           change them again or you exit the editor.  If you want to make
  1430.           your changes remain in effect each time you call up WED, then
  1431.           you should use the WEDINST program described in chapter 5.
  1432.  
  1433.                   To enter the Setup mode, type S and the WED will prompt
  1434.           you like this:
  1435.  
  1436.           SETUP: Auto indent (on) Tabs (tabs) Eoln symbol Color Macros
  1437.  
  1438.                   Notice that the auto indent and tabs prompts are both
  1439.           followed by a descriptor word in parentheses.  These words
  1440.           tell you the current state of the these flags.
  1441.  
  1442.                   You can set the auto indent mode, the tabs mode, or
  1443.           define a macro.  When you are ready to exit the Setup mode,
  1444.           press the <Esc> key, and WED will return to the command mode.
  1445.  
  1446.  
  1447.           4.10.1  Auto Indent.
  1448.  
  1449.                   The auto indent mode saves you key strokes when editing
  1450.           programs which use indentation.  This feature only operates
  1451.           when the editor is in the Insert mode.
  1452.  
  1453.                   If auto indent is turned on and you are entering text
  1454.           in Insert mode, then after each carriage return, WED will indent
  1455.           the next line to the same level as the current line.  It does
  1456.           this by automatically entering spaces at the beginning of the
  1457.           line.  If you want to change the indentation level of the new
  1458.  
  1459.  
  1460.                                         4-7
  1461.           
  1462.  
  1463.  
  1464.  
  1465.           line, you can use either the backspace or space key to reduce
  1466.           or increase the indentation level of the line.
  1467.  
  1468.                   You turn on or off the automatic indenting feature from
  1469.           the Setup mode.  Just type A to toggle on or off the auto indent
  1470.           flag.  The WEDINST program, described in chapter 5, includes a
  1471.           function for specifying the default setting for the auto indent
  1472.           flag.
  1473.  
  1474.           4.10.2  Tabs.
  1475.  
  1476.                   The tab character is a special character in ASCII
  1477.           files.  When it is displayed on the screen, as with an editor,
  1478.           it is displayed as a series of blanks.  The number of blanks
  1479.           is determined by the screen column on which the tab character
  1480.           is positioned and on the current settings of the tab stops.
  1481.           Enough blanks will be included to cause the next character to
  1482.           be displayed at the next tab stop.  In WED, the tab stops are
  1483.           set every eight columns starting with column one.  These
  1484.           settings cannot be changed.
  1485.  
  1486.                   Tabs are most useful for lining up columns of numbers,
  1487.           words or other text.  They are also handy for quickly moving
  1488.           the cursor out to a higher column.  For example, moving to
  1489.           column seventeen takes sixteen keystrokes with the space key,
  1490.           but only two keystrokes with the tab key.
  1491.  
  1492.                   In high level languages, it is often convenient to be
  1493.           able to move out to desired columns using the tab key, but it
  1494.           is undesirable to have actual tab characters inserted into the
  1495.           source file because they make it difficult to change
  1496.           indentation.
  1497.  
  1498.                   WED provides an answer to this conflict.  The Tabs flag
  1499.           controls the action of the tab key in the Insert mode.  When
  1500.           this flag is set to "on", the tab key works normally and causes
  1501.           a tab character to be inserted into the text.  When the flag is
  1502.           off, however, the tab key causes space characters to be inserted
  1503.           instead of a tab character.  Enough spaces will be inserted to
  1504.           move the cursor to the next tab stop.
  1505.  
  1506.                   You can switch the Tabs flag between "tabs" and "spaces"
  1507.           by typing T from Setup mode.  The default setting for the Tabs
  1508.           flag can be set using the WEDINST program described in chapter 5.
  1509.  
  1510.           4.10.3  Eoln Symbol.
  1511.  
  1512.                   WED uses a special character to indicate the location
  1513.           of carriage returns in your file.  The default value for
  1514.           this character is ASCII 174, which looks like a pair of
  1515.           left facing arrows.  You can change this character by typing
  1516.           E from the setup menu.  WED will prompt as follows:
  1517.  
  1518.           CR SYMBOL:  Current symbol is ASCII (174) "<"
  1519.           Enter ASCII code for new symbol:
  1520.  
  1521.  
  1522.                                         4-8
  1523.           
  1524.  
  1525.  
  1526.  
  1527.                   Notice that the editor displays the current value of
  1528.           the character.  Respond by entering the ASCII code for the
  1529.           new end of line symbol.  You must choose a value between 32
  1530.           and 255.  You can change the default for this character
  1531.           with the WEDINST program described in chapter 5.
  1532.  
  1533.           4.10.4  Colors.
  1534.  
  1535.                   The WED editor allows you to choose which colors it
  1536.           will use during the edit session.  It uses three diferent
  1537.           colors, the Normal text color for displaying the text of
  1538.           your file, the Highlighted text color for displaying text
  1539.           marked for erasure, and the Background color.  If you have
  1540.           a color monitor, this can be an eye saving feature.
  1541.  
  1542.                   To change colors, type C while in the Setup menu,
  1543.           and WED will respond with the following prompt:
  1544.  
  1545.           SET COLOR: Normal (14) Highlight(7) Background (0) <Esc>
  1546.  
  1547.                   Notice that the current values for the three colors
  1548.           are shown in parentheses.  Type N to change the Normal text
  1549.           color.  The prompt will now look like this:
  1550.  
  1551.           SET COLOR: Normal (14) Highlight(7) Background (0) <Esc>
  1552.           Enter normal color:
  1553.  
  1554.                   Now enter the number of the new Normal text color.
  1555.           The colors are numbered from 0 to 15 as listed below.
  1556.  
  1557.  
  1558.             0   Black                     8   Gray
  1559.             1   Blue                      9   Light Blue
  1560.             2   Green                     10  Light Green
  1561.             3   Cyan                      11  Light Cyan
  1562.             4   Red                       12  Light Red
  1563.             5   Magenta                   13  Light Magenta
  1564.             6   Brown                     14  Yellow
  1565.             7   White                     15  High-intensity White
  1566.  
  1567.  
  1568.                   To change the Highlight color, type H while in the
  1569.           Setup menu and then follow the same procedure used to set
  1570.           the Normal color.
  1571.  
  1572.                   Changing the Background color is similar to
  1573.           changing the Normal or Highlight colors.  There is one
  1574.           difference though, you may only select a color from the
  1575.           range 0 - 7.
  1576.  
  1577.                   Remember, changes to the colors made with the Setup
  1578.           command will only remain in effect during the current edit
  1579.           session.  To make your color selections permanent, use the
  1580.           WEDINST program described in chapter 5.
  1581.  
  1582.  
  1583.  
  1584.                                         4-9
  1585.           
  1586.  
  1587.  
  1588.  
  1589.           4.10.5  Macros.
  1590.  
  1591.                   The macro facility provided with WED is designed to
  1592.           save you keystrokes and to allow you to customize the editor
  1593.           to suit your needs.  WED allows you to define up to ten macros,
  1594.           one for each function key.  A macro is a set of up to twenty
  1595.           commands (keystrokes) that can be assigned to a particular
  1596.           function key.  When that key is pressed, the commands in the
  1597.           macro will be executed just as if they had been entered from
  1598.           the keyboard.
  1599.  
  1600.                   There are two ways to define a macro.  You can use the
  1601.           Setup command to define a macro while you are editing a file.
  1602.           This method is quick and convenient, but the definition of the
  1603.           macro will only last until you exit the editor.  The other way
  1604.           to define a macro is to use the WEDINST program described below.
  1605.           With this program, the macros you define will actually be
  1606.           written to the WED executable file and will remain in effect
  1607.           until redefined with the WEDINST program.  For your convenience,
  1608.           the distribution copy of WED contains preset definitions for
  1609.           each of the macros.  The definitions of these macros are listed
  1610.           in appendix B.
  1611.  
  1612.                   To define a macro from within WED, enter Setup mode
  1613.           and type M to enter Macro Definition mode.  WED will prompt
  1614.           you as follows:
  1615.  
  1616.           SET MACRO:  1 2 3 4 5 6 7 8 9 0 <Esc>
  1617.  
  1618.                   Now select a macro by pressing one of the ten function
  1619.           keys.  For example, to redefine macro number one, press the
  1620.           <F1> key and WED will respond with the following:
  1621.  
  1622.           Macro(1): GT
  1623.           Enter new macro(1):
  1624.  
  1625.                   The first line shows you the current contents of the
  1626.           macro.  In this example, the macro contains the two commands
  1627.           G and T (Goto Top).  The second line allows you to enter the
  1628.           new macro definition.  Simply enter the commands you want the
  1629.           macro to execute.  If you make a mistake, you can correct it
  1630.           with the back space key.  When you have completed the macro
  1631.           definition, press the same function key that you used to select
  1632.           the macro (<F1> in the above example), and WED will record the
  1633.           new definition.  If you enter an empty macro (a macro with no
  1634.           commands), WED will retain the original contents of the macro.
  1635.  
  1636.                   Once you have set up the macro, you can execute it
  1637.           any time by just pressing the appropriate function key.
  1638.           If you want WED to execute the macro more than once, you
  1639.           can enter a repeat factor before you press the function key.
  1640.           WED will attempt to execute the macro as many times as you
  1641.           have requested, but if it encounters an error during
  1642.           execution, it will halt execution of all macros and return
  1643.           to the command mode.
  1644.  
  1645.  
  1646.                                         4-10
  1647.           
  1648.  
  1649.  
  1650.  
  1651.           5       THE WEDINST PROGRAM.
  1652.  
  1653.  
  1654.                   WEDINST is a separate program provided with the WED
  1655.           editor.  This program enables you to change the settings
  1656.           normally changed with the Setup command in WED, only the changes
  1657.           made with WEDINST will remain in effect from one edit session
  1658.           to another. With WEDINST you can set the auto-indent mode on
  1659.           or off, the tab mode spaces or tab characters, or enter new
  1660.           definitions for any of the ten macro keys.
  1661.  
  1662.  
  1663.           5.1     RUNNING WEDINST.
  1664.  
  1665.  
  1666.                   To use the WEDINST program, first make sure that both
  1667.           the WED.EXE and WEDINST.EXE files are on the same disk and
  1668.           subdirectory.  You must also make sure that you are currently
  1669.           logged into that disk and directory.  Once you have accomplished
  1670.           this, execute the WEDINST program by typing WEDINST from the
  1671.           DOS prompt:
  1672.  
  1673.           C:\EDITOR>WEDINST<Enter>
  1674.  
  1675.                   In the above example, both the WED.EXE and WEDINST.EXE
  1676.           files should be in the EDITOR subdirectory on the C: drive.
  1677.           If the WEDINST program cannot find the WED.EXE file, it will
  1678.           display an error message and return control to DOS:
  1679.  
  1680.           Unable to open object file: WED.EXE
  1681.  
  1682.                   If this occurs, double check that both files are on
  1683.           the same drive and subdirectory and that you are currently
  1684.           logged in to that drive and subdirectory.  When the install
  1685.           program begins execution, it will first display the following
  1686.           message:
  1687.  
  1688.                       loading WED INSTALL UTILITY, V 2.10
  1689.  
  1690.                   The loading process takes a few seconds while WEDINST
  1691.           loads the WED.EXE file.  Next, WEDINST will display its standard
  1692.           setup screen:
  1693.  
  1694.  
  1695.  
  1696.           WED Editor Install Utility, V 2.10
  1697.           SETUP:  Auto indent (on), Tabs (spaces), Eoln symbol, Colors, Macros
  1698.  
  1699.           ==============================================================
  1700.           Macro( 1): GT
  1701.  
  1702.           Macro( 2): GB
  1703.  
  1704.           Macro( 3): <Del><End><Del>
  1705.  
  1706.  
  1707.  
  1708.                                         5-1
  1709.           
  1710.  
  1711.  
  1712.  
  1713.                   The top line of the setup screen identifies the version
  1714.           number of the install program.  The second line, the command
  1715.           line, lists the available options and shows the current settings
  1716.           for auto indent and tabs.  The rest of the setup screen falls
  1717.           below the double lines.  WEDINST uses this area to display the
  1718.           current contents of the ten macros.
  1719.  
  1720.  
  1721.           5.2     USING WEDINST.
  1722.  
  1723.  
  1724.                   Now you are ready to change the setup fields in your
  1725.           WED editor.
  1726.  
  1727.           5.2.1   Auto Indent.
  1728.  
  1729.                   The first setup field listed on the command line is
  1730.           auto indent.  Notice that the word "on" or "off" appears next
  1731.           to the auto indent prompt.  This tells you what the current
  1732.           setting is.  To change the setting, just type A, and auto indent
  1733.           will toggle on or off.
  1734.  
  1735.           5.2.2   Tabs.
  1736.  
  1737.                   The next setup field is the tab field.  Like the auto
  1738.           indent prompt, the tab prompt shows the current setting in
  1739.           parentheses.  To change this setting, type T, and the tab
  1740.           setting will toggle between tabs and spaces.
  1741.  
  1742.           5.2.3   Eoln symbol.
  1743.  
  1744.                   WED uses a special character to indicate the location
  1745.           of carriage returns in your file.  The default value for
  1746.           this character is ASCII 174, which looks like a pair of
  1747.           left facing arrows.  You can change this character by typing
  1748.           E from the main install menu.  WEDINST will prompt as follows:
  1749.  
  1750.           WED Editor Install Utility, V 2.10
  1751.           CR SYMBOL:  Current symbol is ASCII (174) "<"
  1752.           Enter ASCII code for new symbol:
  1753.  
  1754.                   Notice that the install program displays the current
  1755.           value of the character.  Respond by entering the ASCII code
  1756.           for the new end of line symbol.  You must choose a value
  1757.           between 32 and 255.
  1758.  
  1759.           5.2.4   Colors.
  1760.  
  1761.                   The WED editor allows you to choose which colors it
  1762.           will use during the edit session.  It uses three diferent
  1763.           colors, the Normal text color for displaying the text of
  1764.           your file, the Highlighted text color for displaying text
  1765.           marked for erasure, and the Background color.  If you have
  1766.           a color monitor, this can be an eye saving feature.
  1767.  
  1768.  
  1769.  
  1770.                                         5-2
  1771.           
  1772.  
  1773.  
  1774.  
  1775.                   To change colors, type C while in the main install
  1776.           menu.  WEDINST will respond with the following prompt:
  1777.  
  1778.           WED Editor Install Utility, V 2.10
  1779.           SET COLOR: Normal (14) Highlight(7) Background (0) <Esc>
  1780.  
  1781.                   Notice that the current values for the three colors
  1782.           are shown in parentheses.  Also, WEDINST will clear the
  1783.           macros window and display samples of all sixteen available
  1784.           colors.  Type N to change the Normal text color.  The
  1785.           prompt will now look like this:
  1786.  
  1787.           WED Editor Install Utility, V 2.10
  1788.           SET COLOR: Normal (14) Highlight(7) Background (0) <Esc>
  1789.           Enter normal color:
  1790.  
  1791.                   Now enter the number of the new Normal text color.
  1792.           The colors are numbered from 0 to 15 as listed below.
  1793.  
  1794.  
  1795.             0   Black                     8   Gray
  1796.             1   Blue                      9   Light Blue
  1797.             2   Green                     10  Light Green
  1798.             3   Cyan                      11  Light Cyan
  1799.             4   Red                       12  Light Red
  1800.             5   Magenta                   13  Light Magenta
  1801.             6   Brown                     14  Yellow
  1802.             7   White                     15  High-intensity White
  1803.  
  1804.  
  1805.                   To change the Highlight color, type H while in the
  1806.           Setup menu and then follow the same procedure used to set
  1807.           the Normal color.
  1808.  
  1809.                   Changing the Background color is similar to
  1810.           changing the Normal or Highlight colors.  There is one
  1811.           difference though, you may only select a color from the
  1812.           range 0 - 7.
  1813.  
  1814.           5.2.5   Macros.
  1815.  
  1816.                   To change the settings of a macro, type M, and WEDINST
  1817.           will prompt you as follows:
  1818.  
  1819.           SET MACRO: press <F1>..<F10> or <Esc>
  1820.  
  1821.                   Now press one of the ten function keys to change a
  1822.           macro, or press the <Esc> key to return to the main prompt.
  1823.           For example, if you press the <F6> key, WEDINST will display
  1824.           this prompt:
  1825.  
  1826.           Enter macro(6), then <F6>:
  1827.  
  1828.                   Now you can enter a new definition for macro 6.  Just
  1829.           type the keys that you want the macro to execute.  You can use
  1830.  
  1831.  
  1832.                                         5-3
  1833.           
  1834.  
  1835.  
  1836.  
  1837.           the backspace key (the left arrow key above the <Enter> key)
  1838.           to correct any mistakes. When you have completed the macro,
  1839.           press the <F6> key to prompt WEDINST to accept the new macro
  1840.           definition.  WEDINST will update the appropriate macro listing
  1841.           on the screen to reflect the new entry. Notice that if you enter
  1842.           an empty macro, WEDINST will assume you do not want to change
  1843.           the macro and will retain the original contents.
  1844.  
  1845.  
  1846.           5.3     EXITING WEDINST.
  1847.  
  1848.  
  1849.                   When you have completed your session with WEDINST, type
  1850.           Q to quit the program.  The install program will ask if you
  1851.           want to keep the changes you made during this session:
  1852.  
  1853.           Do you want to save the changes?
  1854.  
  1855.                   If you want to keep your changes, type Y and WEDINST
  1856.           will update the WED.EXE file.  Now you can execute the updated
  1857.           WED program.  If you enter Setup mode you will notice that the
  1858.           default settings now reflect any changes you made with WEDINST.
  1859.  
  1860.                   If you do not want to save the changes you made during
  1861.           your install session, type N in response to the quit prompt,
  1862.           and WEDINST will exit to DOS without updating the WED.EXE file.
  1863.  
  1864.  
  1865.  
  1866.  
  1867.  
  1868.  
  1869.  
  1870.  
  1871.  
  1872.  
  1873.  
  1874.  
  1875.  
  1876.  
  1877.  
  1878.  
  1879.  
  1880.  
  1881.  
  1882.  
  1883.  
  1884.  
  1885.  
  1886.  
  1887.  
  1888.  
  1889.  
  1890.  
  1891.  
  1892.  
  1893.  
  1894.                                         5-4
  1895.           
  1896.  
  1897.  
  1898.  
  1899.                                      Appendix A
  1900.  
  1901.  
  1902.                                   Command Summary
  1903.  
  1904.  
  1905.           <right arrow>   Move right one character.                  2.1.1
  1906.           <left arrow>    Move left one character.                   2.1.1
  1907.           <ctrl rt arrow> Move right one word.                       2.1.3
  1908.           <ctrl lf arrow> Move left one word.                        2.1.3
  1909.           <down arrow>    Move down line.                            2.1.1
  1910.           <up arrow>      Move up line.                              2.1.1
  1911.           <Enter>         Move to beginning of next line.            2.1.1
  1912.           <Home>          Move to beginning of current line.         2.1.2
  1913.           <End>           Move to end of current line.               2.1.2
  1914.           <Space>         Move to next space character.              2.1.4
  1915.           <PgDn>          Move down screen.                          2.2
  1916.           <PgUp>          Move up screen.                            2.2
  1917.           <+>             Insert character.                          3.1
  1918.           <->             Delete Cursor.                             3.2
  1919.           <Backspace>     Delete Left.                               3.2
  1920.           <F1>..<F10>     Run macro.                                 4.9
  1921.           Append                                                     4.5
  1922.             Insert        Read another file into the current file.
  1923.             List          List disk directories.
  1924.           Copy            Copy a block of text.                      4.3
  1925.           Down            Same as <PgDn>                             2.2
  1926.           Erase           Erase text from file.                      3.2
  1927.           Format                                                     4.7
  1928.             Indent        Indent block of text.
  1929.             Undent        Unindent block of text.
  1930.           Goto                                                       2.4
  1931.             Top           Move to the top of the file.
  1932.             Bottom        Move to the bottom of the file.
  1933.             Line          Move to specific line in the file.
  1934.             1..8          Move to a pointer in the file.
  1935.           Insert          Add new text to file.                      3.1
  1936.           Locate          Locate a word or phrase.                   3.4
  1937.           Move            Move a block of text.                      4.2
  1938.           Next            Show next prompt line.                     1.4
  1939.           Other           Edit other file.                              
  1940.           Pointer         Set edit an pointer in file.               4.1
  1941.           Quit            Quit editing the current document.         1.7
  1942.           Replace         Replace word or phrase with another.       3.4
  1943.           Setup                                                      4.9
  1944.             Auto indent   Turn automatic indenting feature on or off.
  1945.             Color         Specify background and text colors.
  1946.             Eoln char     Specify end-of-line symbol.
  1947.             Macros        Enter new macros.
  1948.             Tabs          Specify tabs or spaces
  1949.           Up              Same as <PgUp>                             2.2
  1950.           View            View another file.                         4.8
  1951.           Write           Write a block of text to another file.     4.6
  1952.           Xchng           Overwrite characters in file.              3.3
  1953.           Zap             Delete a block of text.                    4.4
  1954.  
  1955.  
  1956.                                         A-1
  1957.           
  1958.  
  1959.  
  1960.  
  1961.                                      Appendix B
  1962.  
  1963.  
  1964.                                  Initial Macro Settings
  1965.  
  1966.  
  1967.  
  1968.  
  1969.           Number          Setting                 What it Does
  1970.           ------          -------                 ------------
  1971.  
  1972.  
  1973.            1              GT                      Goes to the top of the file.
  1974.  
  1975.            2              GB                      Goes to the bottom of the file.
  1976.  
  1977.            3              <Del><End><Del>         Erases to the end of the 
  1978.                                                   current line.
  1979.  
  1980.            4   â           <Home><Del><End><Del>   Erases the current line.
  1981.  
  1982.            5              P1                      Sets pointer 1
  1983.  
  1984.            6              P2                      Sets pointer 2
  1985.  
  1986.            7              C12                     Copies 1 to 2
  1987.  
  1988.            8              M12                     Moves 1 to 2
  1989.  
  1990.            9
  1991.  
  1992.           10              QK                      Saves the current edit file
  1993.                                                   and exits the editor.
  1994.  
  1995.  
  1996.  
  1997.  
  1998.  
  1999.  
  2000.  
  2001.  
  2002.  
  2003.  
  2004.  
  2005.  
  2006.  
  2007.  
  2008.  
  2009.  
  2010.  
  2011.  
  2012.  
  2013.  
  2014.  
  2015.  
  2016.  
  2017.  
  2018.                                         B-1